package com.googlecode.moneyManager.chart;

/**
 * User: Sergiy Doroshenko
 * Date: 12/19/10 9:32 PM
 *
 * http://chart.apis.google.com/chart
   ?chs=440x220
   &cht=lc
   &chco=3072F3,FF0000
   &chd=t:20,30,40,50,60,70,80|61.712,57.453,91.035,85.022,49.983
   &chdl=Ponies|Unicorns
   &chdlp=b
   &chls=2,4,1|1
   &chma=5,5,5,25
 -------------------------------------------------------------------
 cht=lxy
 chd=t:<line_1_x1>,<line_1_x2>,...|<line_1_y1>,<line_1_y2>,...|
      <line_2_x1>,<line_2_x2>,...|<line_2_y1>,<line_2_y2>,...
 */
public class Chart {
    ChartType chartType = ChartType.LXY;
    ChartSize chartSize = ChartSize.getInstance("250x100");
    ChartData chartData;
    BaseUrl baseUrl = BaseUrl.getInstance();
}

enum ChartType{
    LXY("lxy");
    String name;
    ChartType(String n) {
        n = name;
    }
}
class BaseUrl{
    private String url = "http://chart.apis.google.com/chart" ;
    private static final BaseUrl instance = new BaseUrl();
    private BaseUrl(){}
    public String getUrl(){ return url;}
    public static BaseUrl getInstance(){
       return instance;
    }
}
class ChartSize{
    private String size;
    private ChartSize(){};
    private ChartSize(String size) {
        this.size = size;
    }

    public static ChartSize getInstance(String size){
        return new ChartSize(size);
    }
}
class ChartData{}
